/*
 * Copyright (c) 2010-2021 Contributors to the Eclipse Foundation
 * 
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 * 
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0
 * 
 * SPDX-License-Identifier: EPL-2.0
 */

/* Toolbar 
 * 
 * Styling Toolbar means styling the toolbar container and the widget inside toolbar  (dijitToolbar)
 * 
 * 1. toolbar (default styling): 
 * 		.dijitToolbar - styles for outer container
 *
 * 2. widget inside toolbar
 * 		.dijitToolbar .dijitButtonNode   - Button widget
 * 					  .dijitComboButton  - ComboButton widget
 * 					  .dijitDropDownButton  - DropDownButton widget
 * 					  .dijitToggleButton  - ToggleButton widget
 * 		
 * 3. hovered widget inside toolbar (ie, mouse hover on the widget inside)
 * 			.dijitToolbar .dijitButtonNodeHover  - styles for hovered Button widget
 * 
 * 4. actived widget inside toolbar (ie, mouse down on the widget inside)
 * 			.dijitToolbar .dijitButtonNodeActive  - mouse down on Button widget
 */
.oneui .dijitToolbar {
	border-bottom: 1px solid #ccc;
	padding: 1px 5px;
	zoom: 1;
	background: #f4f4f4; /* Old browsers */
	background: -moz-linear-gradient(top, #ffffff 0%, #ededed 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(100%, #ededed)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #ffffff 0%, #ededed 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #ffffff 0%, #ededed 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, #ffffff 0%, #ededed 100%); /* IE10+ */
	background: linear-gradient(top, #ffffff 0%, #ededed 100%); /* W3C */
}
.oneui .dijitToolbar label {
	padding: 0 3px 0 6px;
}
/** override oneui/form/Button.css, and also ComboBox down arrow **/
.oneui .dijitToolbar .dijitButton .dijitButtonNode, .oneui .dijitToolbar .dijitDropDownButton .dijitButtonNode, .oneui .dijitToolbar .dijitComboButton .dijitButtonNode, .oneui .dijitToolbar .dijitToggleButton .dijitButtonNode, .oneui .dijitToolbar .dijitComboBox .dijitButtonNode {
	border-width: 0;
	/* on hover/active, border-->1px, padding-->1px */
  	padding: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
	background-color: transparent;
	background-image:none;
	margin:0 !important;
	font-weight:normal;
	min-width: 0;
}
.oneui .dijitToolbar .dijitButtonNode .dijitButtonContents {
	padding:2px;
}
.oneui .dijitToolbar .dijitButtonDisabled .dijitButtonNode, .oneui .dijitToolbar .dijitDropDownButtonDisabled .dijitButtonNode, .oneui .dijitToolbar .dijitComboButtonDisabled .dijitButtonNode, .oneui .dijitToolbar .dijitToggleButtonDisabled .dijitButtonNode {
	background-color: transparent;
}
.dj_ie .oneui .dijitToolbar .dijitButton .dijitButtonNode, .dj_ie .oneui .dijitToolbar .dijitDropDownButton .dijitButtonNode, .dj_ie .oneui .dijitToolbar .dijitComboButton .dijitButtonNode, .dj_ie .oneui .dijitToolbar .dijitToggleButton .dijitButtonNode, .dj_ie .oneui .dijitToolbar .dijitComboBox .dijitButtonNode {
	background-color: transparent;/* for IE, which doesn't understand rgba(...) */

}
.dj_ie6 .oneui .dijitToolbar .dijitButton .dijitButtonNode, .dj_ie6 .oneui .dijitToolbar .dijitDropDownButton .dijitButtonNode, .dj_ie6 .oneui .dijitToolbar .dijitComboButton .dijitButtonNode, .dj_ie6 .oneui .dijitToolbar .dijitToggleButton .dijitButtonNode, .dj_ie6 .oneui .dijitToolbar .dijitComboBox .dijitButtonNode {
	background: none;/* because background-color: transparent above doesn't work on IE*/
}
/* hover status */
.dj_ie .oneui .dijitToolbar .dijitButtonHover .dijitButtonNode, .dj_ie .oneui .dijitToolbar .dijitDropDownButtonHover .dijitButtonNode, .dj_ie .oneui .dijitToolbar .dijitComboButton .dijitButtonNodeHover, .dj_ie .oneui .dijitToolbar .dijitComboButton .dijitDownArrowButtonHover, .dj_ie .oneui .dijitToolbar .dijitToggleButtonHover .dijitButtonNode {
	/* button should still turn blue on hover, so need to override .dj_ie rules above */
  background-color: #e5e5e5;
}
/* active status */
.dj_ie .oneui .dijitToolbar .dijitButtonActive .dijitButtonNode, .dj_ie .oneui .dijitToolbar .dijitDropDownButtonActive .dijitButtonNode, .dj_ie .oneui .dijitToolbar .dijitComboButtonActive .dijitButtonNode, .dj_ie .oneui .dijitToolbar .dijitToggleButtonActive .dijitButtonNode {
	/* button should still turn blue on press, so need to override .dj_ie rules above */
  background-color: #ccc;
}
.oneui .dijitToolbar .dijitComboButton .dijitStretch {
	/* no rounded border on side adjacent to arrow */
  -moz-border-radius: 2px 0 0 2px;
	border-radius: 2px 0 0 2px;
}
.oneui .dijitToolbar .dijitComboButton .dijitArrowButton {
	/* no rounded border on side adjacent to button */
  -moz-border-radius: 0 2px 2px 0;
	border-radius: 0 2px 2px 0;
}
.oneui .dijitToolbar .dijitComboBox .dijitButtonNode {
	padding: 0;
}
/* hover status */
.oneui .dijitToolbar .dijitButtonHover .dijitButtonNode, .oneui .dijitToolbar .dijitDropDownButtonHover .dijitButtonNode, .oneui .dijitToolbar .dijitToggleButtonHover .dijitButtonNode, .oneui .dijitToolbar .dijitComboButtonHover .dijitButtonNode {
	border-width: 1px;
	border-color:#ccc;
	background-image:none;
	background: #e5e5e5; /* Old browsers */
	background: -moz-linear-gradient(top, #fefefe 0%, #cccccc 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fefefe), color-stop(100%, #cccccc)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #fefefe 0%, #cccccc 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #fefefe 0%, #cccccc 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, #fefefe 0%, #cccccc 100%); /* IE10+ */
	background: linear-gradient(top, #fefefe 0%, #cccccc 100%); /* W3C */
	padding: 1px;
}
/* active status */
.oneui .dijitToolbar .dijitButtonActive .dijitButtonNode, .oneui .dijitToolbar .dijitDropDownButtonActive .dijitButtonNode, .oneui .dijitToolbar .dijitToggleButtonActive .dijitButtonNode, .oneui .dijitToolbar .dijitComboButtonActive .dijitButtonNode {
	border-width: 1px;
	border-color:#ccc;
	background: #ccc; /* Old browsers */
	background: -moz-linear-gradient(top, #dbdbdb 0%, #f4f4f4 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #dbdbdb), color-stop(100%, #f4f4f4)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #dbdbdb 0%, #f4f4f4 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #dbdbdb 0%, #f4f4f4 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, #dbdbdb 0%, #f4f4f4 100%); /* IE10+ */
	background: linear-gradient(top, #dbdbdb 0%, #f4f4f4 100%); /* W3C */
	padding: 1px;
	background-image:none;
	-webkit-box-shadow: inset 3px 0 8px rgba(0, 0, 0, 0.13);
	-moz-box-shadow: inset 3px 0 8px rgba(0, 0, 0, 0.13);
	box-shadow: inset 3px 0 8px rgba(0, 0, 0, 0.13);
}
.oneui .dijitToolbar .dijitComboButtonActive {
	border-width: 1px;
	padding: 0;
	background-image:none;
}

/* Avoid double border between button and arrow */
.oneui .dijitToolbar .dijitComboButtonHover .dijitDownArrowButton, .oneui .dijitToolbar .dijitComboButtonActive .dijitDownArrowButton {
	border-left-width: 0;
	padding-left: 2px;
}
.oneui .dijitToolbar .dijitComboButtonHover .dijitDownArrowButton {
	padding-left: 2px;/* since there's no left border, don't reduce from 2px --> 1px */
}
/* Selected status */
.oneui .dijitToolbar .dijitButtonSelected .dijitButtonNode, .oneui .dijitToolbar .dijitDropDownButtonSelected .dijitButtonNode, .oneui .dijitToolbar .dijitToggleButtonSelected .dijitButtonNode {
	background-image:none;
	background-color: #ffffff;
}
/* toggle button checked status */
.oneui .dijitToolbar .dijitToggleButtonChecked .dijitButtonNode {
	margin: 0;
	/* remove margin and add a border */
  	border-width: 1px;
	border-style: solid;
	border-color: #ccc;
	padding: 1px;
}
.oneui .dijitToolbarSeparator {
	/* separator icon in the editor sprite */
  background: url("../../../icons/images/editorIconsEnabled.png");
}
/* Toolbar inside of disabled Editor */
.oneui .dijitDisabled .dijitToolbar {
	background: none;
	background-color: #efefef;
	border-bottom: 1px solid #d3d3d3;
	color:#aaa;
}

/* Combo and drop down button */
.oneui .dijitToolbar .dijitComboButton .dijitButtonText,
.oneui .dijitToolbar .dijitDropDownButton .dijitButtonText {
	padding-right: 5px;
}
